package com.allqj.sfx.infrastructure.dao;

import com.allqj.sfx.infrastructure.po.SystemResourceDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author sjw
 * @className SystemResourceDAO
 * @date 2022/7/28 11:17
 * @description: SystemResourceDAO 数据访问层
 */
public interface SystemResourceDAO extends JpaRepository<SystemResourceDO, Integer>, JpaSpecificationExecutor<SystemResourceDO> {
    List<SystemResourceDO> findAllByFatherIdAndIsdeleteFalse(Integer fatherId);

    List<SystemResourceDO> findAllByIdInAndIsdeleteFalse(Iterable<Integer> integers);
}
